/*
* // +-------------------------------------------------------------------------------------------------
* // |                 有你就好 [ 有节骨乃坚，无心品自端 ]     <http://encoding.wang>
* // +-------------------------------------------------------------------------------------------------
* // |                             独在异乡为异客         每逢佳节倍思亲
* // +-------------------------------------------------------------------------------------------------
* // |                 联系:   <707069100@qq.com>      <http://weibo.com/513778937>
* // +-------------------------------------------------------------------------------------------------
*/

// -----------------------------------------------------------------------------------------------------
// +----------------------------------------------------------------------------------------------------
// |                   ErYang出品 属于小极品          共同学习    共同进步
// +----------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------


package wang.encoding.mroot.mapper.cms


import com.baomidou.mybatisplus.plugins.pagination.Pagination
import wang.encoding.mroot.model.entity.cms.Article
import wang.encoding.mroot.common.mapper.SuperMapper


/**
 * 文章 Mapper 接口层
 *
 * @author ErYang
 */
interface ArticleMapper : SuperMapper<Article> {

    /**
     * 得到所有  Article 集合
     * @param page 分页
     * @param article  Article
     * @return List<Article> 集合
     */
    fun list2BlogPage(page: Pagination, article: Article): List<Article>?

    // -------------------------------------------------------------------------------------------------

    /**
     * 根据 id  更新阅读量
     *
     * @param map 集合
     *
     * @return 集合
     */
    fun updateView(map: Map<String, Any>): Boolean

    // -------------------------------------------------------------------------------------------------

    /**
     * 根据 categoryId 查询 文章集合
     *
     * @param map  Map<String, Any>
     * @return List<Article>
     */
    fun listByCategoryIdArray(map: Map<String, Any>): List<Article>?

    // -------------------------------------------------------------------------------------------------

}

// -----------------------------------------------------------------------------------------------------

// End ArticleMapper interface

/* End of file ArticleMapper.kt */
/* Location: ./src/main/kotlin/wang/encoding/mroot/mapper/cms/ArticleMapper.kt */

// -----------------------------------------------------------------------------------------------------
// +----------------------------------------------------------------------------------------------------
// |                           ErYang出品 属于小极品  O(∩_∩)O~~   共同学习    共同进步
// +----------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------
